package com.hrm.dao;

import java.util.List;

import com.hrm.domain.User;

/*
 * 用户数据处理层接口
 */
public interface UserDao {

	public User getUserByNP(String loginName, String pwd);

	public User getUserByLN(String loginName);

	public User getUserByPhone(String phone);

	public Integer getCount(int flag, Object... parametes);

	public List<User> getAllUser();

	public List<User> getUsersByTerm(int flag, Object... parametes);

	/*
	 * public List<User> getUsersByIndexPage(int indexPage, int pageSize);
	 * 
	 * public List<User> getUsersByUN(String userName, int indexPage, int pageSize);
	 * 
	 * public List<User> getUsersBySta(int status, int indexPage, int pageSize);
	 * 
	 * public List<User> getUsersByUS(String userName, int status, int indexPage,
	 * int pageSize);
	 */

	public Integer addUser(User user);

	public Integer modifyUser(User user);

	public Integer modifyPWDByPhone(String newPWD, String phone);

	public Integer modifyPWDByID(int ID, String newPWD);

	public Integer modefyStaByLN(int status, String loginName);

	public Integer delUser(String loginName);

}
